Integrand size = 26, antiderivative size = 224 \[ \int \frac {g+h x}{\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2} \, dx=\frac {e^{-\frac {a}{b p q}} (f g-e h) (e+f x) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {1}{p q}} \operatorname {ExpIntegralEi}\left (\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right )}{b^2 f^2 p^2 q^2}+\frac {2 e^{-\frac {2 a}{b p q}} h (e+f x)^2 \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {2}{p q}} \operatorname {ExpIntegralEi}\left (\frac {2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right )}{b^2 f^2 p^2 q^2}-\frac {(e+f x) (g+h x)}{b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )} \]
[Out]
Time = 0.44 (sec) , antiderivative size = 224, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {2447, 2446, 2436, 2337, 2209, 2437, 2347, 2495} \[ \int \frac {g+h x}{\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2} \, dx=\frac {(e+f x) e^{-\frac {a}{b p q}} (f g-e h) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {1}{p q}} \operatorname {ExpIntegralEi}\left (\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right )}{b^2 f^2 p^2 q^2}+\frac {2 h (e+f x)^2 e^{-\frac {2 a}{b p q}} \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {2}{p q}} \operatorname {ExpIntegralEi}\left (\frac {2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right )}{b^2 f^2 p^2 q^2}-\frac {(e+f x) (g+h x)}{b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )} \]
[In]
[Out]
Rule 2209
Rule 2337
Rule 2347
Rule 2436
Rule 2437
Rule 2446
Rule 2447
Rule 2495
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {g+h x}{\left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )^2} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = -\frac {(e+f x) (g+h x)}{b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}+\text {Subst}\left (\frac {2 \int \frac {g+h x}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {(f g-e h) \int \frac {1}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b f p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = -\frac {(e+f x) (g+h x)}{b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}+\text {Subst}\left (\frac {2 \int \left (\frac {f g-e h}{f \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}+\frac {h (e+f x)}{f \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}\right ) \, dx}{b p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {(f g-e h) \text {Subst}\left (\int \frac {1}{a+b \log \left (c d^q x^{p q}\right )} \, dx,x,e+f x\right )}{b f^2 p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = -\frac {(e+f x) (g+h x)}{b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}+\text {Subst}\left (\frac {(2 h) \int \frac {e+f x}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b f p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(2 (f g-e h)) \int \frac {1}{a+b \log \left (c d^q (e+f x)^{p q}\right )} \, dx}{b f p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {\left ((f g-e h) (e+f x) \left (c d^q (e+f x)^{p q}\right )^{-\frac {1}{p q}}\right ) \text {Subst}\left (\int \frac {e^{\frac {x}{p q}}}{a+b x} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{b f^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = -\frac {e^{-\frac {a}{b p q}} (f g-e h) (e+f x) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {1}{p q}} \text {Ei}\left (\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right )}{b^2 f^2 p^2 q^2}-\frac {(e+f x) (g+h x)}{b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}+\text {Subst}\left (\frac {(2 h) \text {Subst}\left (\int \frac {x}{a+b \log \left (c d^q x^{p q}\right )} \, dx,x,e+f x\right )}{b f^2 p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(2 (f g-e h)) \text {Subst}\left (\int \frac {1}{a+b \log \left (c d^q x^{p q}\right )} \, dx,x,e+f x\right )}{b f^2 p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = -\frac {e^{-\frac {a}{b p q}} (f g-e h) (e+f x) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {1}{p q}} \text {Ei}\left (\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right )}{b^2 f^2 p^2 q^2}-\frac {(e+f x) (g+h x)}{b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}+\text {Subst}\left (\frac {\left (2 h (e+f x)^2 \left (c d^q (e+f x)^{p q}\right )^{-\frac {2}{p q}}\right ) \text {Subst}\left (\int \frac {e^{\frac {2 x}{p q}}}{a+b x} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{b f^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (2 (f g-e h) (e+f x) \left (c d^q (e+f x)^{p q}\right )^{-\frac {1}{p q}}\right ) \text {Subst}\left (\int \frac {e^{\frac {x}{p q}}}{a+b x} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{b f^2 p^2 q^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right ) \\ & = \frac {e^{-\frac {a}{b p q}} (f g-e h) (e+f x) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {1}{p q}} \text {Ei}\left (\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right )}{b^2 f^2 p^2 q^2}+\frac {2 e^{-\frac {2 a}{b p q}} h (e+f x)^2 \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {2}{p q}} \text {Ei}\left (\frac {2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right )}{b^2 f^2 p^2 q^2}-\frac {(e+f x) (g+h x)}{b f p q \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )} \\ \end{align*}
Time = 0.22 (sec) , antiderivative size = 269, normalized size of antiderivative = 1.20 \[ \int \frac {g+h x}{\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2} \, dx=-\frac {e^{-\frac {2 a}{b p q}} (e+f x) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {2}{p q}} \left (b e^{\frac {2 a}{b p q}} f p q \left (c \left (d (e+f x)^p\right )^q\right )^{\frac {2}{p q}} (g+h x)-e^{\frac {a}{b p q}} (f g-e h) \left (c \left (d (e+f x)^p\right )^q\right )^{\frac {1}{p q}} \operatorname {ExpIntegralEi}\left (\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{b p q}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )-2 h (e+f x) \operatorname {ExpIntegralEi}\left (\frac {2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{b p q}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )\right )}{b^2 f^2 p^2 q^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )} \]
[In]
[Out]
\[\int \frac {h x +g}{{\left (a +b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )\right )}^{2}}d x\]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 328, normalized size of antiderivative = 1.46 \[ \int \frac {g+h x}{\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2} \, dx=\frac {{\left ({\left ({\left (b f g - b e h\right )} p q \log \left (f x + e\right ) + a f g - a e h + {\left (b f g - b e h\right )} q \log \left (d\right ) + {\left (b f g - b e h\right )} \log \left (c\right )\right )} e^{\left (\frac {b q \log \left (d\right ) + b \log \left (c\right ) + a}{b p q}\right )} \operatorname {log\_integral}\left ({\left (f x + e\right )} e^{\left (\frac {b q \log \left (d\right ) + b \log \left (c\right ) + a}{b p q}\right )}\right ) - {\left (b f^{2} h p q x^{2} + b e f g p q + {\left (b f^{2} g + b e f h\right )} p q x\right )} e^{\left (\frac {2 \, {\left (b q \log \left (d\right ) + b \log \left (c\right ) + a\right )}}{b p q}\right )} + 2 \, {\left (b h p q \log \left (f x + e\right ) + b h q \log \left (d\right ) + b h \log \left (c\right ) + a h\right )} \operatorname {log\_integral}\left ({\left (f^{2} x^{2} + 2 \, e f x + e^{2}\right )} e^{\left (\frac {2 \, {\left (b q \log \left (d\right ) + b \log \left (c\right ) + a\right )}}{b p q}\right )}\right )\right )} e^{\left (-\frac {2 \, {\left (b q \log \left (d\right ) + b \log \left (c\right ) + a\right )}}{b p q}\right )}}{b^{3} f^{2} p^{3} q^{3} \log \left (f x + e\right ) + b^{3} f^{2} p^{2} q^{3} \log \left (d\right ) + b^{3} f^{2} p^{2} q^{2} \log \left (c\right ) + a b^{2} f^{2} p^{2} q^{2}} \]
[In]
[Out]
\[ \int \frac {g+h x}{\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2} \, dx=\int \frac {g + h x}{\left (a + b \log {\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}\right )^{2}}\, dx \]
[In]
[Out]
\[ \int \frac {g+h x}{\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2} \, dx=\int { \frac {h x + g}{{\left (b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right ) + a\right )}^{2}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1930 vs. \(2 (225) = 450\).
Time = 0.39 (sec) , antiderivative size = 1930, normalized size of antiderivative = 8.62 \[ \int \frac {g+h x}{\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2} \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \frac {g+h x}{\left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2} \, dx=\int \frac {g+h\,x}{{\left (a+b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )\right )}^2} \,d x \]
[In]
[Out]